package cn.project.engineering.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
import cn.project.engineering.constant.LiveEventBusConstant
import cn.project.engineering.service.LoopJobService
import com.jeremyliao.liveeventbus.LiveEventBus
import log.KLog

/**
 *
 * @author  lifuhai
 * @date 2021/2/20 14:10
 */
class NetWorkBroadCastReceiver : BroadcastReceiver() {
    companion object {
        private const val TAG = "NetWorkBroadCastReceiver"
    }

    override fun onReceive(context: Context?, intent: Intent?) {
        if ("android.net.conn.CONNECTIVITY_CHANGE"== intent?.action) {
//            LiveEventBus.get(LiveEventBusConstant.INTERNET).post("1")
        }
    }
}